<?php

namespace Trawind\Shares\Helpers;
use Trawind\Shares\Models\Shares;

class SharesHelper
{
    /**
     * return
     */
    public static function getSharesRelation()
    {
        $share_business_type = config('shares');
        $relation = [];

        $organization_type = array_keys(Shares::ORGANIZATION_TYPE_LIST);

        if (!empty($share_business_type)){
            foreach ($share_business_type as $business_type_id => $class_path){
                foreach ($organization_type as $org_id) {
                    $combine_key = $business_type_id. '_' . $org_id;
                    $relation[$combine_key] = $class_path;
                }
            }
        }

        return $relation;
    }


}
